home *** CD-ROM | disk | FTP | other *** search
/ Super Shareware Collection / Super Shareware Collection.iso / info / rcntx323.zip / TRANSFER.EXE / INDEX.BAT < prev    next >
DOS Batch File  |  1991-03-14  |  3KB  |  85 lines

  1. echo off
  2. echo                      FAST CONTEXTUAL SEARCH SYSTEM 
  3. echo             Copyright (c) Edward Guy P.Eng CDP 1987/8/9/90/91
  4. if exist rcntxerr.lst del rcntxerr.lst
  5. if not "%1" == "" goto cont2
  6. echo No input files specified
  7. echo No input files specified>>rcntxerr.lst
  8. goto abort
  9. :cont2
  10. if not exist outfile.dct goto continue
  11. echo OUTFILE exists "%1" etc will be merged with it.
  12. echo should you not want this, please press [ctrl][C]
  13. echo to terminate, and delete or rename the old OUTFILE.*
  14. attrib -r outfile.*
  15. pause 
  16. goto next
  17. :continue
  18. if exist %1 goto cont4
  19. echo Can't find %1
  20. echo Can't find %1>>rcntxerr.lst
  21. goto abort
  22. :cont4
  23. if exist outfile.dct attrib -r outfile.*
  24. if exist outfile.dct del outfile.*
  25. cls
  26. indbat %1 outfile -+\/,.!()[]{};:'= 
  27. if errorlevel 3 goto abort
  28. if"%2"=="" goto finish
  29. shift
  30. :next
  31. if exist %1 goto cont3
  32. echo Can't find %1
  33. goto abort
  34. :cont3
  35. if exist infile1.dct attrib -r infile1.*
  36. if exist infile1.dct del infile1.*
  37. rename outfile.* infile1.*
  38. cls
  39. indbat %1 outfile -+\/,.!()[]{};:'=
  40. if errorlevel 3 goto abort
  41. if exist infile2.dct attrib -r infile2.*
  42. if exist infile2.dct del infile2.*
  43. rename outfile.* infile2.*
  44. cls
  45. rename infile1.txt outfile.txt
  46. attrib -r outfile.txt
  47. mergbat infile1 infile2 outfile
  48. if errorlevel 3 goto abort
  49. cls
  50. attrib -r infile1.*
  51. del infile1.*
  52. attrib -r infile2.*
  53. del infile2.*
  54. if "%2"=="" goto finish
  55. shift
  56. goto next
  57. :finish
  58. copy licence.pgf outfile.pgf
  59. cls
  60. speedind outfile 
  61. rem if errorlevel 3 goto abort
  62. attrib -r outfile.*
  63. if exist p!.1 del p!.*
  64. cls
  65. goto final
  66. :abort
  67. echo .
  68. echo RUN ABORTED DUE TO ERRORS   -  DO NOT USE OUTFILE.* FILES 
  69. :final
  70. attrib -r outfile.*
  71. echo ╔════════════════════════════════════════════════════════════════════════╗
  72. if exist rcntxerr.lst echo ║ ERRORS OCCURRED DURING THE RUN   TYPE RCNTXERR.LST  FOR DETAILS        ║
  73. echo ║ The files to run with Racontex are named OUTFILE.* and you may invoke  ║
  74. echo ║ it by RACONTEX OUTFILE.                                                ║
  75. echo ║ The next time you run this indexer it will merge the new file with     ║
  76. echo ║ OUTFILE.* if those files exist.                                        ║
  77. echo ║ You may rename OUTFILE.* to any other name.                            ║
  78. echo ║ e.g. you may give the command RENAME OUTFILE.* LIBCAT.*                ║
  79. echo ║ and invoke RACONTEX LIBCAT.                                            ║
  80. echo ║ If you later want to merge other data onto LIBCAT you must first       ║
  81. echo ║ RENAME LIBCAT.* OUTFILE.* (after the run you may again                 ║
  82. echo ║ RENAME OUTFILE.* LIBCAT.*)                                             ║
  83. echo ╚════════════════════════════════════════════════════════════════════════╝
  84.